﻿#region Copyright (C) Sector7 Software Studio. All rights reserved
/*******************************************************************************************
 * Creation
 *      Author:         Wolf Lai
 *      Date:           2012/2/8 20:15:15
 *      Version:        
 * Modification 
 *      Author: 
 *      Date: 
 *      Description: 
 *      Version:
 *******************************************************************************************/
#endregion
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Sector7.Restaurant.EntityType;
using Sector7.Framework.Core;

namespace Sector7.Restaurant.DAO
{
    /// <summary>
    /// 餐桌数据访问接口
    /// </summary>
    public interface ITableDAO
    {
        /// <summary>
        /// 添加桌位信息
        /// </summary>
        /// <param name="table">桌位信息</param>
        /// <returns></returns>
        int Create(RS_Table table);

        /// <summary>
        /// 读取所有桌位信息
        /// </summary>
        /// <returns></returns>
        List<RS_Table> ReadAll();

        /// <summary>
        /// 更新桌位信息
        /// </summary>
        /// <param name="delta">桌位改变量</param>
        /// <returns></returns>
        int Update(EntityDelta delta);






        RS_Table Read(int tableId);

        List<RS_Table> ReadAll(int roomId);

        List<RS_Table> ReadAll(int roomId, bool isEqualsRoomId);


        int Delete(int tableId);
    }
}
